From: Florian Müllner Date: Tue, 4 Nov 2025 15:14:37 +0000 (+0100) Subject: search: Center name label vertically X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~66^2^2~12 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=39296c1bf59a4868f54bcaa83cd6561fb503debd;p=gnome-shell.git search: Center name label vertically If all search results of the provider are shown, the "x more" label is hidden, and the name label has more space than it needs. Center the label vertically in that case to align with the icon. Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8793 Part-of: (cherry picked from commit 191f3d68513552d71ed4df8e1f50c30d408d441b) --- diff --git a/js/ui/search.js b/js/ui/search.js index d7f1df394..3333e042d 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -950,11 +950,14 @@ class ProviderInfo extends St.Button { style_class: 'list-search-provider-details', orientation: Clutter.Orientation.VERTICAL, x_expand: true, + y_expand: false, }); const nameLabel = new St.Label({ text: provider.appInfo.get_name(), x_align: Clutter.ActorAlign.START, + y_align: Clutter.ActorAlign.CENTER, + y_expand: true, }); this._moreLabel = new St.Label({x_align: Clutter.ActorAlign.START});